﻿<div class="actions">
	<ul>
		<li><?php echo $html->link(__('Thêm huyện', true), array('action' => 'add',$id)); ?></li>
	</ul>
</div>
<div class="view">
<h2><?php 
$this->pageTitle = 'Danh mục huyện - Danh muc huyen';

echo 'Danh mục huyện';?></h2>
<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php echo 'Tên Tỉnh:'; ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $tinh['Tinh']['TEN_T']; ?>
			&nbsp;
		</dd>
</dl>


<table cellpadding="0" cellspacing="0">
<tr>
	<th><?php 
		$paginator->options(array('url'=>$this->passedArgs));
		echo $paginator->sort('Tên huyện','Huyen.TEN_H');?></th>
	<th class="actions"><?php __('Hành động');?></th>
</tr>
<?php
$i = 0;
foreach ($huyens as $huyen):
	$class = null;
	if ($i++ % 2 == 0) {
		$class = ' class="altrow"';
	}
?>
	<tr<?php echo $class;?>>
		<td>
			<p align="left"><?php echo $huyen['Huyen']['TEN_H']; ?></p>
		</td>
		<td class="actions">
			
			<?php echo $html->image('edit.png').'&nbsp;'.$html->link(__('Sửa', true), array('action' => 'edit', $huyen['Huyen']['id'],$huyen['Huyen']['tinh_id'])); ?>
			<?php echo $html->image('delete.png').'&nbsp;'.$html->link(__('Xóa', true), array('action' => 'delete', $huyen['Huyen']['id']), null, sprintf(__('Bạn thật sự muốn xóa: %s?', true), $huyen['Huyen']['id'])); ?>
			<?php echo $html->link(__('Các xã', true), array('controller'=>'xas','action' => 'index', $huyen['Huyen']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
</table>
</div>
<div class="paging">
	<?php echo $paginator->prev('<< '.__('trước', true), array(), null, array('class'=>'disabled'));?>
 | 	<?php echo $paginator->numbers();?>
	<?php echo $paginator->next(__('sau', true).' >>', array(), null, array('class' => 'disabled'));?>
</div>


